public class Rectangulo {

	private int x;
	private int y;
	private int w;
	private int h;

	public Rectangulo(int x, int y, int w, int h) {
		super();
		this.x = x;
		this.y = y;
		this.w = w;
		this.h = h;
	}

	public float calcArea() {
		return w * h;
	}

	public boolean puntoEnRect(int x, int y) {

		if (x >= this.x && y >= this.y && x <= this.x + w && y <= this.y + h)
			return true;
		else
			return false;

	}

}
